<%@ page language="java" contentType="text/html; charset=utf-8"    pageEncoding="utf-8"%>
<%@include file="header.jsp"%>
<script>
	function getObj(obj){
		return document.getElementById(obj)
	};
	function Sendnow(){
		frames['editor'].GetCon();
		var form = document.getElementById("updatePromotionsForm");
		form.submit();
	/*	alert($("content").value);*/ 
	};
	function checkAndSubmit(){
		var form = document.getElementById("updatePromotionsForm");
		form.submit();
	}
</script>
<form method="post" action="updatePromotions.action" id="updatePromotionsForm">
<table width="100%">
<tr>
<td>标题:</td><td align="left"><input type="text" name="title" id="title"  value="<s:property value='promotions.title'/>" /></td></tr>
<tr><td colspan="2">
<textarea id='content' name='content' style='display:none'><s:property value="promotions.content"/></textarea>
<iframe name='editor' src='edit/edit.action?V=content&T=2&A=1&uploadFolder=<%=com.windfone.common.Constant.UPLOAD_PROMOTION %>' frameBorder='0' marginHeight='0' marginWidth='0' scrolling='no' style='height:250px;width:640px'></iframe>
</td>
<tr>
<td colspan="2">
<input type="button" value="提交" onclick="Sendnow()">&nbsp;
<input type="hidden" name="promotionsId"  id="promotionsId" value="<s:property value='promotions.id' />"/>
<input	type="button" value="返回"  onclick="javascript:window.history.back();" />
</td>
</tr>
</table>
</form>